/*
 * MembersSignOut.java
 *
 * Created on November 13, 2008, 10:10 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jollylengkono.skripsi.Members.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import jollylengkono.skripsi.dao.MembersDao;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author JollkY
 */
public class MembersSignOut extends Action {
    private String FORWARD;
    private int STATE;

    /** Creates a new instance of MembersSignOut */
    public MembersSignOut() {
    }

    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) {
//        this.STATE = new MembersDao().signOut("memberSessObject");
        HttpSession sess = request.getSession(true);
        sess.invalidate();
        return mapping.findForward(FORWARD);
    }
}
